home *** CD-ROM | disk | FTP | other *** search
- Path: engnews1.Eng.Sun.COM!taumet!clamage
- From: clamage@taumet.eng.sun.com (Steve Clamage)
- Newsgroups: comp.std.c++
- Subject: Re: basic_string& operator=(const basic_string&
- Date: 7 Feb 1996 15:57:12 GMT
- Organization: Bell-Northern Research
- Approved: clamage@eng.sun.com (comp.std.c++)
- Message-ID: <4fai4o$oto@engnews1.Eng.Sun.COM>
- References: <199602062335.SAA13298@novice.uwaterloo.ca>
- NNTP-Posting-Host: taumet.eng.sun.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset="us-ascii"
- Content-Transfer-Encoding: 7bit
- X-Nntp-Posting-Host: bmtlh520.bnr.ca
- X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715)
- X-Url: news:199602062335.SAA13298@novice.uwaterloo.ca
- X-Lines: 20
- Content-Length: 708
-
- My original posting was somewhat ill-posed. What I really meant to say
- was that it seems to me that a counted pointer representation is to ruled
- out in practice because the DWP wording, in my opinion, prevents the
- representation to be shared in the only case that makes sense to share.
-
- I interpret the phrase
-
- points at the first element of an
- allocated copy of the the array
- whose first element is pointed at
- by str.data()
- ^^^^<--------- my 'wording' now
-
- as meaning that if we had a string x without sharers then string y(x)
- would necessarily create another string without sharers.
-
- --
- John Hickin Nortel Technology, Montreal, Quebec
- (514) 765-7924 hickin@bnr.ca
-
-
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is
- summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- ]
-